package com.dhec.ptms.eqs.model;

// Generated 2016-8-18 17:20:58 by Hibernate Tools 4.0.0

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Surveyissuetracking generated by hbm2java
 */
@Entity
@Table(name = "surveyissuetracking", catalog = "SPECDB")
public class Surveyissuetracking implements java.io.Serializable {

	private Long id;
	private String dcno;
	private int ecnId;
	private Date issueTime;
	private short issueCount;
	private Date lastReceiveTime;
	private short replyCount;
	private short cancelCount;
	private String status;
	private String backType;

	public Surveyissuetracking() {
	}

	public Surveyissuetracking(String dcno, int ecnId, Date issueTime,
			short issueCount, short replyCount, short cancelCount, String status) {
		this.dcno = dcno;
		this.ecnId = ecnId;
		this.issueTime = issueTime;
		this.issueCount = issueCount;
		this.replyCount = replyCount;
		this.cancelCount = cancelCount;
		this.status = status;
	}

	public Surveyissuetracking(String dcno, int ecnId, Date issueTime,
			short issueCount, Date lastReceiveTime, short replyCount,
			short cancelCount, String status, String backType) {
		this.dcno = dcno;
		this.ecnId = ecnId;
		this.issueTime = issueTime;
		this.issueCount = issueCount;
		this.lastReceiveTime = lastReceiveTime;
		this.replyCount = replyCount;
		this.cancelCount = cancelCount;
		this.status = status;
		this.backType = backType;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "dcno", nullable = false, length = 20)
	public String getDcno() {
		return this.dcno;
	}

	public void setDcno(String dcno) {
		this.dcno = dcno;
	}

	@Column(name = "ecnId", nullable = false)
	public int getEcnId() {
		return this.ecnId;
	}

	public void setEcnId(int ecnId) {
		this.ecnId = ecnId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "issueTime", nullable = false, length = 19)
	public Date getIssueTime() {
		return this.issueTime;
	}

	public void setIssueTime(Date issueTime) {
		this.issueTime = issueTime;
	}

	@Column(name = "issueCount", nullable = false)
	public short getIssueCount() {
		return this.issueCount;
	}

	public void setIssueCount(short issueCount) {
		this.issueCount = issueCount;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "lastReceiveTime", length = 19)
	public Date getLastReceiveTime() {
		return this.lastReceiveTime;
	}

	public void setLastReceiveTime(Date lastReceiveTime) {
		this.lastReceiveTime = lastReceiveTime;
	}

	@Column(name = "replyCount", nullable = false)
	public short getReplyCount() {
		return this.replyCount;
	}

	public void setReplyCount(short replyCount) {
		this.replyCount = replyCount;
	}

	@Column(name = "cancelCount", nullable = false)
	public short getCancelCount() {
		return this.cancelCount;
	}

	public void setCancelCount(short cancelCount) {
		this.cancelCount = cancelCount;
	}

	@Column(name = "status", nullable = false, length = 10)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "backType", length = 10)
	public String getBackType() {
		return this.backType;
	}

	public void setBackType(String backType) {
		this.backType = backType;
	}

}
